//
//  AddFriendViewController.h
//  ShareNavigation
//
//  Created by 水木 傅 on 12-5-16.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ASIHTTPRequest.h"
#import "FriendInfo.h"

@interface AddFriendViewController : UIViewController<UISearchBarDelegate,UITableViewDataSource,UITableViewDelegate,NSXMLParserDelegate,UIAlertViewDelegate>

@property (weak, nonatomic) IBOutlet UISearchBar *SearchFriendBar;
@property (weak, nonatomic) IBOutlet UITableView *searchResult;
@property (nonatomic,retain) NSMutableArray *resultArray;
@property (nonatomic,retain) NSString *returnFindXML;
@property (nonatomic,retain) NSString *switchString;
@property (nonatomic,retain) FriendInfo *friendinfo;
@property (nonatomic,retain) NSString *currentUserID;
- (IBAction)pressAddFriend:(id)sender;

-(void) getSearchFriendInfo:(NSString *) searchStr;
-(void) requestFindFinished:(ASIHTTPRequest *)request;
-(void) requestFindFailed:(ASIHTTPRequest *)request;
-(void) analysisXML:(NSString *)xmlStr;
-(UIImage *) getPicture :(NSString *)imageName;
-(void) addFriendRequest:(NSString *) userID willAdddFriend:(NSString *)friendID;
- (NSString*) stringWithUUID ;
@end
